package com.heisenhub.logs.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.heisenhub.common.db.model.IsDel;
import com.heisnenhub.common.module.entity.IBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 日志记录表
 * </p>
 *
 * @author sen
 * @since 2024-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("log_records")
public class LogsRecords extends IsDel implements IBaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 服务名
     */
    private String serviceName;

    /**
     * 唯一编号 （ 暂定关联的（唯一字段）如订单的订单编号）
     */
    private String businessUniqueCode;

    /**
     * 操作类型  0 添加 1修改 2删除 
     */
    private Integer operateType;

    /**
     * 操作分组  每个模块自己定义
     */
    private Integer operateGroup;

    /**
     * 操作主题
     */
    private String operateTitle;

    /**
     * 操作 详情使用json 存
     */
    private String details;

    /**
     * 操作人
     */
    private String jobName;

    /**
     * 操作人编号
     */
    private String jobNo;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 操作是否成功
     */
    private Integer status;


    public static final String ID = "id";

    public static final String SERVICE_NAME = "service_name";

    public static final String BUSINESS_UNIQUE_CODE = "business_unique_code";

    public static final String OPERATE_TYPE = "operate_type";

    public static final String OPERATE_GROUP = "operate_group";

    public static final String OPERATE_TITLE = "operate_title";

    public static final String DETAILS = "details";

    public static final String JOB_NAME = "job_name";

    public static final String JOB_NO = "job_no";

    public static final String CREATE_TIME = "create_time";

    public static final String STATUS = "status";

}
